package com.yuntu.dao;

import com.yuntu.pojo.Peitems;

import java.util.List;

public interface PeitemsMapper {
    /**
     * 分页查询
     * @param pageUtil
     * @return
     * @throws Exception
     */
    List<Peitems> getPageAll(PageUtil<Peitems> pageUtil)throws Exception;

    /**
     * 查询总数
     * @return
     * @throws Exception
     */
    int getCount()throws Exception;
    /**
     * 根据id查单个
     */
    Peitems getAllById(int itemid)throws Exception;
    /**
     * 添加
     */
    int insert (Peitems peitems)throws Exception;
    /**
     * 修改
     */
    int peitemsUpd(Peitems peitems)throws Exception;
    /**
     * 删除
     */
    int deleteById(int itemid)throws Exception;
    /**
     * 重复查询
     */
    Peitems selectNotRepeat(String itemname)throws Exception;
}
